package com.czxttkl.junit;
import java.io.InputStream;

import com.czxttkl.xml.MeasureTask;
import com.czxttkl.xml.PullXmlService;

import android.test.AndroidTestCase;
import android.util.Log;

public class XmlTest extends AndroidTestCase {

	public void testPullXmlService() throws Throwable {
	
		InputStream inputStream = this.getClass().getClassLoader()
				.getResourceAsStream("task.xml");
		Log.i("XmlTest","start reading xml file");
		MeasureTask taskInstance = PullXmlService.getXml(inputStream);
		Log.i("id",taskInstance.getId());
		Log.i("phonetype",taskInstance.getPhoneType());
		Log.i("networktype",taskInstance.getNetworkType());
		
		inputStream.close();
	}
}